package com.test.mchelepesa.util_rice.analytics_rice.bean_rice

import com.test.mchelepesa.activity_fragment_rice.base_rice.BaseApplication_rice
import com.test.mchelepesa.constant_rice.Constant_rice
import com.test.mchelepesa.util_rice.analytics_rice.util_rice.AnalyticsUtil_rice
import com.test.mchelepesa.util_rice.helper_rice.UserInfoHelper_rice

open class ParamBase_rice(
    /** token */
    var token: String = "",
    /** userId */
    var userId: String = "",
    /** androidId */
    var androidId: String = "",
    /** advertId */
    var advertId: String = "",
    /** version */
    var version: String = "",
    /** product */
    var product: String = "",
    /** clientType */
    var clientType: String = "",
    /** aduid */
    var aduid: String = "",
    /** aduidPath */
    var aduidPath: String = "",
    /** 是否限制广告id，1是 0否 */
    var isLimitAdTrackingEnabled: String = "",
    /** 接口版本号 */
    var apiVersion: String = "v3"
) {
    init {
        this.token = UserInfoHelper_rice.getInstance().token_rice
        this.userId = UserInfoHelper_rice.getInstance().userId_rice
        this.androidId = AnalyticsUtil_rice.getAndroidId()
        this.advertId = AnalyticsUtil_rice.getAdId()
        this.isLimitAdTrackingEnabled = AnalyticsUtil_rice.getAdEnabled().toString()
        this.aduid = AnalyticsUtil_rice.getAdId()
        this.aduidPath = AnalyticsUtil_rice.getAndroidId()
        this.version = BaseApplication_rice.gApplication_rice().versionCodeStr
        this.product = Constant_rice.PRODUCT
        this.clientType = "ANDROID"
    }
}